home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / Graphical 228967162001.psc / Form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  2001-02-14  |  10.0 KB  |  299 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Jpg Picture Effects"
  4.    ClientHeight    =   4440
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   8025
  8.    Icon            =   "Form1.frx":0000
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   4440
  11.    ScaleWidth      =   8025
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton Command14 
  14.       Caption         =   "Command14"
  15.       Height          =   255
  16.       Left            =   2280
  17.       TabIndex        =   16
  18.       Top             =   3960
  19.       Width           =   855
  20.    End
  21.    Begin VB.CommandButton Command13 
  22.       Caption         =   "TNC13"
  23.       Height          =   255
  24.       Left            =   1320
  25.       TabIndex        =   15
  26.       Top             =   3960
  27.       Width           =   855
  28.    End
  29.    Begin VB.CommandButton Command12 
  30.       Caption         =   "TNC12"
  31.       Height          =   255
  32.       Left            =   240
  33.       TabIndex        =   14
  34.       Top             =   3960
  35.       Width           =   975
  36.    End
  37.    Begin VB.PictureBox Picture2 
  38.       Height          =   3615
  39.       Left            =   240
  40.       ScaleHeight     =   3555
  41.       ScaleWidth      =   4635
  42.       TabIndex        =   13
  43.       Top             =   240
  44.       Width           =   4695
  45.    End
  46.    Begin VB.CommandButton Command11 
  47.       Caption         =   "9"
  48.       Height          =   255
  49.       Left            =   6600
  50.       TabIndex        =   12
  51.       Top             =   1680
  52.       Width           =   855
  53.    End
  54.    Begin VB.CommandButton Command10 
  55.       Caption         =   "11"
  56.       Height          =   255
  57.       Left            =   6600
  58.       TabIndex        =   11
  59.       Top             =   2400
  60.       Width           =   855
  61.    End
  62.    Begin VB.CommandButton Command9 
  63.       Caption         =   "8"
  64.       Height          =   255
  65.       Left            =   6600
  66.       TabIndex        =   10
  67.       Top             =   1320
  68.       Width           =   855
  69.    End
  70.    Begin VB.CommandButton Command8 
  71.       Caption         =   "10"
  72.       Height          =   255
  73.       Left            =   6600
  74.       TabIndex        =   9
  75.       Top             =   2040
  76.       Width           =   855
  77.    End
  78.    Begin VB.CommandButton Command7 
  79.       Caption         =   "7"
  80.       Height          =   255
  81.       Left            =   6600
  82.       TabIndex        =   8
  83.       Top             =   960
  84.       Width           =   855
  85.    End
  86.    Begin VB.CommandButton Command6 
  87.       Caption         =   "6"
  88.       Height          =   255
  89.       Left            =   6600
  90.       TabIndex        =   7
  91.       Top             =   600
  92.       Width           =   855
  93.    End
  94.    Begin VB.CommandButton Command5 
  95.       Caption         =   "5"
  96.       Height          =   255
  97.       Left            =   5760
  98.       TabIndex        =   6
  99.       Top             =   2040
  100.       Width           =   855
  101.    End
  102.    Begin VB.CommandButton Command4 
  103.       Caption         =   "4"
  104.       Height          =   255
  105.       Left            =   5760
  106.       TabIndex        =   5
  107.       Top             =   1680
  108.       Width           =   855
  109.    End
  110.    Begin VB.CommandButton Command3 
  111.       Caption         =   "3"
  112.       Height          =   255
  113.       Left            =   5760
  114.       TabIndex        =   4
  115.       Top             =   1320
  116.       Width           =   855
  117.    End
  118.    Begin VB.CommandButton Command2 
  119.       Caption         =   "2"
  120.       Height          =   255
  121.       Left            =   5760
  122.       TabIndex        =   3
  123.       Top             =   960
  124.       Width           =   855
  125.    End
  126.    Begin VB.CommandButton Command1 
  127.       Caption         =   "1"
  128.       Height          =   255
  129.       Left            =   5760
  130.       TabIndex        =   2
  131.       Top             =   600
  132.       Width           =   855
  133.    End
  134.    Begin VB.PictureBox Picture33 
  135.       Height          =   3615
  136.       Left            =   7800
  137.       Picture         =   "Form1.frx":0ECA
  138.       ScaleHeight     =   3555
  139.       ScaleWidth      =   4635
  140.       TabIndex        =   1
  141.       Top             =   4200
  142.       Width           =   4695
  143.    End
  144.    Begin VB.PictureBox Picture1 
  145.       Height          =   3615
  146.       Left            =   240
  147.       Picture         =   "Form1.frx":9714
  148.       ScaleHeight     =   3555
  149.       ScaleWidth      =   4635
  150.       TabIndex        =   0
  151.       Top             =   240
  152.       Width           =   4695
  153.    End
  154. Attribute VB_Name = "Form1"
  155. Attribute VB_GlobalNameSpace = False
  156. Attribute VB_Creatable = False
  157. Attribute VB_PredeclaredId = True
  158. Attribute VB_Exposed = False
  159. Private Sub Command1_Click()
  160. Dim barnumber As Integer, barwidth As Integer
  161. Dim i, j As Integer
  162. barwidth = 300
  163. Picture2.Picture = Picture33.Picture
  164. barnumber = Picture1.ScaleWidth / barwidth
  165. On Error Resume Next
  166. For i = 1 To barwidth
  167. For j = 0 To barnumber
  168. Picture2.PaintPicture Picture1.Picture, j * barwidth, 0, i, Picture1.ScaleHeight, j * barwidth, 0, i, Picture1.ScaleHeight, &HCC0029
  169. DoEvents
  170. End Sub
  171. Private Sub Command10_Click()
  172. Dim barwidth, barheight As Integer
  173. Dim i As Single
  174. If Picture1.ScaleWidth > Picture1.ScaleHeight Then
  175. barwidth = Picture1.ScaleWidth - Picture1.ScaleHeight
  176. barheight = 1
  177. ElseIf Picture1.ScaleWidth < Picture1.ScaleHeight Then
  178. barwidth = 1
  179. barheight = Picture1.ScaleHeight - Picture1.ScaleWidth
  180. barwidth = 1: barheight = 1
  181. End If
  182. On Error Resume Next
  183. For i = 1 To Picture1.ScaleWidth - barwidth
  184. Picture2.PaintPicture Picture1.Picture, Int((Picture1.ScaleWidth - barwidth) / 2), Int((Picture1.ScaleHeight - barheight) / 2), barwidth, barheight, Int((Picture1.ScaleWidth - barwidth) / 2), barwidth, barheight, &HCC0020
  185. barwidth = barwidth + 1: barheight = barheight + 1
  186. DoEvents
  187. End Sub
  188. Private Sub Command11_Click()
  189. Dim barwidth As Integer, barheight As Integer
  190. Dim i As Integer
  191. Picture2.Picture = Picture33.Picture
  192. barwidth = 1: barheight = Picture1.ScaleHeight
  193. On Error Resume Next
  194. For i = 1 To Picture1.ScaleWidth / 2
  195. Picture2.PaintPicture Picture1.Picture, (Picture1.ScaleWidth - barwidth) / 2, 0, barwidth, barheight, (Picture1.ScaleWidth - barwidth) / 2, 0, barwidth, barheight, &HCC0020
  196. barwidth = barwidth + 4
  197. DoEvents
  198. End Sub
  199. Private Sub Command12_Click()
  200. Dim barnumber As Integer, barwidth, barheight As Integer
  201. Dim i, j As Integer
  202. barwidth = 300
  203. barheigth = 300
  204. Picture2.Picture = Picture33.Picture
  205. barnumber = Picture1.ScaleWidth / barwidth
  206. On Error Resume Next
  207. For i = 1 To barwidth / 2 Step 3
  208. For j = 0 To barnumber
  209. Picture2.PaintPicture Picture1.Picture, j * barwidth, 0, i, Picture1.ScaleHeight, j * barwidth, 0, i, Picture1.ScaleHeight, &HCC0029
  210. DoEvents
  211. For i = 1 To barheigth Step 11
  212. For j = 0 To barnumber
  213. Picture2.PaintPicture Picture1.Picture, 0, j * barheigth, Picture1.ScaleWidth, i, 0, j * barheigth, Picture1.ScaleWidth, i, &HCC0020
  214. DoEvents
  215. End Sub
  216. Private Sub Command13_Click()
  217. Dim barnumber As Integer, barwidth, barheight As Integer
  218. Dim i, j As Integer
  219. barwidth = 300
  220. barheigth = 300
  221. On Error Resume Next
  222. Picture2.Picture = Picture33.Picture
  223. For i = 1 To Picture1.ScaleWidth Step 12
  224. Picture2.PaintPicture Picture1.Picture, 0, 0, i, Picture1.ScaleHeight, 0, 0, i, Picture1.ScaleHeight, &HCC0020
  225. Picture2.PaintPicture Picture1.Picture, 0, j * barheigth, Picture1.ScaleWidth, i, 0, j * barheigth, Picture1.ScaleWidth, i, &HCC0020
  226. DoEvents
  227. End Sub
  228. Private Sub Command14_Click()
  229. End Sub
  230. Private Sub Command2_Click()
  231. Dim barnumber As Integer, barheigth As Integer
  232. Dim i, j As Integer
  233. barheigth = 300
  234. Picture2.Picture = Picture33.Picture
  235. barnumber = Picture1.ScaleHeight / barheigth
  236. On Error Resume Next
  237. For i = 1 To barheigth
  238. For j = 0 To barnumber
  239. Picture2.PaintPicture Picture1.Picture, 0, j * barheigth, Picture1.ScaleWidth, i, 0, j * barheigth, Picture1.ScaleWidth, i, &HCC0020
  240. DoEvents
  241. End Sub
  242. Private Sub Command3_Click()
  243. Dim i As Single
  244. On Error Resume Next
  245. For i = 1 To Picture1.ScaleWidth Step 12
  246. Picture2.PaintPicture Picture1.Picture, 0, 0, i, Picture1.ScaleHeight, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, &HCC0020
  247. End Sub
  248. Private Sub Command4_Click()
  249. Dim i As Single
  250. On Error Resume Next
  251. Picture2.Picture = Picture33.Picture
  252. For i = 1 To Picture1.ScaleWidth Step 12
  253. Picture2.PaintPicture Picture1.Picture, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, 0, 0, i, Picture1.ScaleHeight, &HCC0020
  254. DoEvents
  255. End Sub
  256. Private Sub Command5_Click()
  257. Dim i As Single
  258. On Error Resume Next
  259. Picture2.Picture = Picture33.Picture
  260. For i = 1 To Picture1.ScaleWidth Step 12
  261. Picture2.PaintPicture Picture1.Picture, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, 0, 0, Picture1.ScaleWidth, i, &HCC0020
  262. DoEvents
  263. End Sub
  264. Private Sub Command6_Click()
  265. Dim i As Single
  266. On Error Resume Next
  267. Picture2.Picture = Picture33.Picture
  268. For i = 1 To Picture1.ScaleWidth Step 12
  269. Picture2.PaintPicture Picture1.Picture, 0, 0, Picture1.ScaleWidth, i, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, &HCC0020
  270. DoEvents
  271. End Sub
  272. Private Sub Command7_Click()
  273. Dim i As Single
  274. On Error Resume Next
  275. Picture2.Picture = Picture33.Picture
  276. For i = 1 To Picture1.ScaleWidth Step 12
  277. Picture2.PaintPicture Picture1.Picture, 0, 0, i, Picture1.ScaleHeight, 0, 0, i, Picture1.ScaleHeight, &HCC0020
  278. DoEvents
  279. End Sub
  280. Private Sub Command8_Click()
  281. Dim barwidth, barheight As Integer
  282. Dim i As Integer
  283. barwidth = Picture1.ScaleWidth
  284. barheight = 1
  285. On Error Resume Next
  286. For i = 1 To Picture1.ScaleHeight / 2
  287. Picture2.PaintPicture pictrue1.Picture, 0, (Picture1.ScaleHeight - barheight) / 2, barwidth, barheight, 0, (Picture1.ScaleHeight - barheight) / 2, barwidth, barheight, &HCC0020
  288. barheight = barheight + 4
  289. DoEvents
  290. End Sub
  291. Private Sub Command9_Click()
  292. Dim i As Single
  293. On Error Resume Next
  294. Picture2.Picture = Picture33.Picture
  295. For i = 1 To Picture1.ScaleWidth Step 12
  296. Picture2.PaintPicture Picture1.Picture, Picture1.ScaleWidth - i, 0, i, Picture1.ScaleHeight, Picture1.ScaleWidth - i, 0, i, Picture1.ScaleHeight, &HCC0020
  297. DoEvents
  298. End Sub
  299.